<?php
/**
 * User:于小涛
 * Date:2020/2/17
 * Time:13:55
 */
use think\facade\Route;
Route::group(function () {
    Route::rule("","rbac.Login/index");
    Route::rule("adminlogin","rbac.Login/adminLogin");
    Route::rule("adminlogout","rbac.Login/adminLogOut");
    Route::group('rbac',function () {
        Route::rule('adminGetList', 'rbac.Admin/getList');
        Route::rule('adminGetListData', 'rbac.Admin/getListData');
        Route::rule('adminAdd', 'rbac.Admin/add');
        Route::rule('adminEditPassword', 'rbac.Admin/editPassword');
        Route::rule('adminDel', 'rbac.Admin/del');
        Route::rule('adminEdit', 'rbac.Admin/edit');
        Route::rule('adminLock', 'rbac.Admin/lock');
        Route::rule('adminConfigRole', 'rbac.Admin/configRole');
        Route::rule('adminChangePassword', 'rbac.Admin/changePassword');

        Route::rule('authGetList', 'rbac.Auth/getList');
        Route::rule('authGetListData', 'rbac.Auth/getListData');
        Route::rule('authAdd', 'rbac.Auth/add');
        Route::rule('authDel', 'rbac.Auth/del');
        Route::rule('authEdit', 'rbac.Auth/edit');
        Route::rule('authLock', 'rbac.Auth/lock');
        Route::rule('roleAuthTree', 'rbac.Auth/authTree');

        Route::rule('roleGetList', 'rbac.Role/getList');
        Route::rule('roleGetListData', 'rbac.Role/getListData');
        Route::rule('roleAdd', 'rbac.Role/add');
        Route::rule('roleDel', 'rbac.Role/del');
        Route::rule('roleEdit', 'rbac.Role/edit');
        Route::rule('roleAuthConfig', 'rbac.Role/authConfig');
        Route::rule('adminRoleTree', 'rbac.Role/roleTree');

        Route::rule('opLogGetList', 'rbac.OpLog/getList');
        Route::rule('opLogGetListData', 'rbac.OpLog/getListData');
    });
    Route::group('system',function () {
        Route::rule('channelGetList', 'system.Channel/getList');
        Route::rule('channelGetListData', 'system.Channel/getListData');
        Route::rule('channelAdd', 'system.Channel/add');
        Route::rule('channelDel', 'system.Channel/del');
        Route::rule('channelEdit', 'system.Channel/edit');
    });
    Route::group('promotion',function () {
        Route::rule('promotionRecordGetList', 'promotion.PromotionRecord/getList');
        Route::rule('promotionRecordGetListData', 'promotion.PromotionRecord/getListData');
        Route::rule('promotionRecordDel', 'promotion.PromotionRecord/del');
        Route::rule('promotionRecordEdit', 'promotion.PromotionRecord/edit');

        Route::rule('visitRecordGetList', 'promotion.VisitRecord/getList');
        Route::rule('visitRecordGetListData', 'promotion.VisitRecord/getListData');
        Route::rule('visitRecordDel', 'promotion.VisitRecord/del');

        Route::rule('signRecordGetList', 'promotion.SignRecord/getList');
        Route::rule('signRecordGetListData', 'promotion.SignRecord/getListData');
        Route::rule('signRecordDel', 'promotion.SignRecord/del');
    });
});